﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Watcher.AMQ.Objects;
using System.ComponentModel;
using AsyncBindingList;

namespace Watcher.AMQ
{
    class DataProvider
    {
        private static DataProvider instance;
        static AsyncBindingList<TestData> _dataList;
        public AsyncBindingList<TestData> DataList
        {
            get { return _dataList; }
            set { _dataList = value; }
        }

        DataProvider()
        {
            _dataList = new AsyncBindingList<TestData>();
        }

        public static DataProvider getInstance() {
            if(instance == null)
                instance = new DataProvider();
            return instance;
        }

    }
}
